﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace Iacym.Entities
{
    public class PROFESION:BaseEntity
    {
        public PROFESION()
        {
            this.PERSONA_PROFESION = new List<PERSONA_PROFESION>();
        }

        public Int32 Id { get; set; }

        [Display(Name="Descripcion")]
        [Required(ErrorMessage="La Descripción es requerida")]
        public string Descripcion { get; set; }
        public virtual ICollection<PERSONA_PROFESION> PERSONA_PROFESION { get; set; }

        public override string ToString()
        {
            return Descripcion;
        }

    }
}
